package com.joseph.interceptor;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

/**
 * @description 
 * @author Joseph_Mok
 * @date 2016年4月1日上午10:29:01
 */

public class ParamFilter implements Filter {

	@Override
	public void init(FilterConfig filterConfig) throws ServletException {
	
	}

	@Override
	public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
			throws IOException, ServletException {
		System.out.println("filter1111");
		//Filter请求预处理
		chain.doFilter(request, response);
		//Filter响应处理
		System.out.println("filter2222.......");
	}

	@Override
	public void destroy() {
		
	}

}
